import {Component, OnInit, AfterViewInit} from '@angular/core';
import {ModalController, NavParams} from '@ionic/angular';
import {Router} from '@angular/router';

@Component({
    templateUrl: 'facilty-modal.html',
    styleUrls: ['support-facilities.component.scss']
})
export class FaciltyPage implements OnInit, AfterViewInit {
    data: any;
    appTypeCustom : any;
    constructor(private navParams: NavParams,
                private modalCtrl: ModalController,
                public router: Router) {
    }

    ngOnInit() {
        const bodyStyles = window.getComputedStyle(document.body);
        this.appTypeCustom = bodyStyles.getPropertyValue('--appTypeCustom').trim().replace('"', '').replace('"', '');
        this.data = JSON.parse(this.navParams.data.value);
    }

    ngAfterViewInit() {
    }

    dismiss() {
        this.modalCtrl.dismiss();
    }

}
